package com.zsrt.java.day20161223.zzm.demo04;

import java.util.Scanner;

import org.junit.Test;

public class ElseIfTest {

	@Test
	public void elseIfTest(){
		Scanner sc = new Scanner(System.in);
		System.out.println("请输入您的成绩:");
		int grade=sc.nextInt();
		sc.close();
	    
		if(grade>=90){
			System.out.println("优秀");
		}else if(grade>=80){
			System.out.println("良好");
		}else if(grade>=70){
			System.out.println("差");
		}else{
			System.out.println("有问题");
		}
	}
}
